﻿using DH.Core.DI;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Text;

namespace DH.Core.Logger
{
   public class LoggerProvider
    {
        public static ILogger<LoggerRunner> GetLogger()
        {
            var servicesProvider = MicrosoftDI.BuildDi();
            var runner = servicesProvider.GetRequiredService<LoggerRunner>();
            return runner._logger;
        }
        public static LoggerRunner GetLoggerRunner()
        {
            var servicesProvider = MicrosoftDI.BuildDi();
            var runner = servicesProvider.GetRequiredService<LoggerRunner>();
            return runner;
        }
    }
}
